package com.wtb.javatool.dao;

import com.wtb.javatool.dto.ClassDto;
import com.wtb.javatool.entity.ProjectClass;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProjectClassMapper {
    List<ClassDto> findProjectClassesAndTeamsByCourseId(@Param("courseId") Long courseId);

    void insertClass(ProjectClass projectClass);

    void insertCourseClassRef(@Param("courseId") Long courseId, @Param("classId") Long classId);

    void deleteCourseClassRef(@Param("classId") Long classId);

    void insertClassStudentRef(@Param("classId") Long classId,
                               @Param("list") List<Long> studentIds);
    void deleteClassStudentRef(@Param("classId") Long classId,
                               @Param("list") List<Long> studentIds);
}
